import request from '@/utils/request'

// 查询活动申请表列表
export function listActivityApply(query) {
  return request({
    url: '/system/activityApply/list',
    method: 'get',
    params: query
  })
}

// 查询活动申请表详细
export function getActivityApply(activityApplyId) {
  return request({
    url: '/system/activityApply/' + activityApplyId,
    method: 'get'
  })
}

// 新增活动申请表
export function addActivityApply(data) {
  return request({
    url: '/system/activityApply',
    method: 'post',
    data: data
  })
}

// 修改活动申请表
export function updateActivityApply(data) {
  return request({
    url: '/system/activityApply',
    method: 'put',
    data: data
  })
}

// 删除活动申请表
export function delActivityApply(activityApplyId) {
  return request({
    url: '/system/activityApply/' + activityApplyId,
    method: 'delete'
  })
}

export function submitActivityApply(activityApplyId) {
  return request({
    url: '/wechatApp/lowCarbonActivity/agreeApply?activityApplyId=' + activityApplyId,
    method: 'post'
  })
}


